from JCI_Controller import *
from apscheduler.schedulers.background import BackgroundScheduler

#自动更新
scheduler = BackgroundScheduler(timezone="Asia/Shanghai")
# 每6小时采集1次！
scheduler.add_job(update_list_contents, 'interval', hours=auto_run_hours, next_run_time=datetime.now())
scheduler.start()
print('启动更新任务！')
while True:
    print('main 6 hours')
    time.sleep(auto_run_seconds)
